package com.zx.cloud.model.request;

import java.io.Serializable;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

@ToString(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class QuartzJobRequest implements Serializable{
    
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@NotNull
    @NotBlank
    @JsonProperty("jobName")
    @ApiModelProperty(value = "定时任务名", example = "taskTest", required = true)
    private String jobName;

    @NotNull
    @Size(min = 4, max = 128, message = "请输入6~128位的密码")
    @JsonProperty("jobGroup")
    @ApiModelProperty(value = "定时任务组名", example = "taskTestGroup", required = true)
    private String jobGroup;

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String username) {
		this.jobName = username;
	}

	public String getJobGroup() {
		return jobGroup;
	}

	public void setJobGroup(String password) {
		this.jobGroup = password;
	}
	
}
